<template>
	<view class="page-fade-in" :style="{opacity: pageOpc}">
		<template v-if="pageOpc">
			<view>
				<web-view :src="webUrl"></web-view>
			</view>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pageOpc:0,
				type:1,
				webUrl:'https://api.mo-yu.vip/protocol/index.html'
			}
		},
		onLoad(ops) {
			this.type=ops.type
			let title=""
			if(this.type==1){
				title='用户协议'
				this.webUrl="https://api.mo-yu.vip/protocol/index.html"
			}else{
				title='隐私政策'
				this.webUrl="https://api.mo-yu.vip/protocol/policy.html"
			}
			uni.setNavigationBarTitle({
				title
			})
		},
		onReady(){
			setTimeout(() => {
				this.pageOpc=1
			}, 100)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	
</style>
